package com.uuah.server.message;

import com.uuah.server.api.IExceptionPayload;

public class ExceptionPayload implements IExceptionPayload {
	private static final long serialVersionUID = -7114836033686599024L;
	private String message = null;
	private Throwable exception;

	public ExceptionPayload(Throwable exception) {
		this.exception = exception;
		message = exception.getMessage();
	}

	public String getMessage() {
		return message;
	}

	public Throwable getException() {
		return exception;
	}

}
